package util;

import java.util.List;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class LambdaUtil {

  public static <T,R> List<R> mapAttr2List(Stream<T> stream,Function<T,R> extacer) {
    return stream.map(extacer).collect(Collectors.toList());
  }
  
}
